package com.cj.startup

/**
 * 保存任务排序后的一些结果
 */
data class StartupSortStore(
    //所有任务排序后的结果
    val result:MutableList<Startup<*>>,
    //任务原图
    val startupMap:MutableMap<Class<out Startup<*>>,Startup<*>>,
    //当前任务的依赖关系
    val startupChildMap:MutableMap<Class<out Startup<*>>,MutableList<Class<out Startup<*>>>>
){
    companion object{
        fun empty():StartupSortStore = StartupSortStore(mutableListOf(), mutableMapOf(),
            mutableMapOf())
    }
}
